//
//  StaticObj.h
//  NinjaTurtle
//
//  Created by Nguyen Tri Chung on 2/6/15.
//
//

#ifndef __NinjaTurtle__StaticObj__
#define __NinjaTurtle__StaticObj__

#include <stdio.h>
#include "cocos2d.h"
#include "Obj.h"

USING_NS_CC;

class StaticObj : public Obj {
    CC_SYNTHESIZE(float, currentElapsedJumpTime, CurrentElapsedJumpTime);
    CC_SYNTHESIZE(float, lastStepY, LastStepY);
    CC_SYNTHESIZE(string, objectName, ObjectName);
    CC_SYNTHESIZE(bool, jumping, Jumping);
    CC_SYNTHESIZE(bool, falling, Falling);
    CC_SYNTHESIZE(bool, blocking, Blocking);
    
    CC_SYNTHESIZE(float, currentDelayToBreak, CurrentDelayToBreak);
    
    CC_SYNTHESIZE(string, teleportAddress, TeleportAddress);
    CC_SYNTHESIZE(string, teleportDestination, TeleportDestination);
public:
    StaticObj(const string& identifier);
    StaticObj(const string& identifier, const string& animation);
    StaticObj(const string& identifier, const vector<string>& animations);
    void initStaticObj();
    virtual ~StaticObj();
    void update(float dt);
};

#endif /* defined(__NinjaTurtle__StaticObj__) */
